package com.amap.builder;

/**
 * @author liuyi
 * @since 2025/10/31 9:14
 */
public class ResponseBuilder {
    public static BizResponse success(Object data) {
        Response response = new Response();
        response.setCode("20000");
        response.setMsg("请求成功");
        response.setData(data);
        return new BizResponse(response);
    }

    public static BizResponse fail(String code, String msg) {
        Response response = new Response();
        response.setCode(code);
        response.setMsg(msg);
        response.setData((Object)null);
        return new BizResponse(response);
    }
}
